package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.bean.model.Advertising;
import com.yami.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

/**
 * @author wxf
 * @date 2023/6/13 15:49
 */
public interface AdvertisingMapper extends BaseMapper<Advertising> {

    /**
     * 平台分页获取广告
     * @param page
     * @param advertising
     * @return
     */
    IPage<Advertising> getPage(@Param("page") PageParam<Advertising> page, @Param("advertising") Advertising advertising);

    /**
     *  删除广告
     *
     * @param ids
     */
    void deleteAdvertisingByIds(@Param("ids") Long[] ids);

}
